package cn.itcast.work.pojo;

import java.util.Date;

/**
 * 工具类
 *      为了实现在前端直接带回整个包括用户名的博客集合
 */
public class Text_show {
    private String username;//作者


    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    @Override
    public String toString() {
        return "Text_show{" +
                "username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", title='" + title + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", content='" + content + '\'' +
                ", createdate=" + createdate +
                ", mname='" + mname + '\'' +
                ", cname='" + cname + '\'' +
                '}';
    }

    public Text_show(){

    }
    private String phone;//电话
    private String title;
    private String subtitle;//摘要
    private String content;//内容



    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Text_show(String username, String phone, String title, String subtitle, String content, Date createdate,
                     String mname, String cname) {
        this.username = username;
        this.phone = phone;
        this.title = title;
        this.subtitle = subtitle;
        this.content = content;
        this.createdate = createdate;
        this.mname = mname;
        this.cname = cname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedata(Date createdate) {
        this.createdate = createdate;
    }





    private Date createdate;//发布时间



    private String mname;//一级分类 外键
    private String cname;//二级分类 外键
}
